package com.bjesc_b2c.app.appraiset.mvp.view.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.bjesc_b2c.app.appraiset.R;
import com.bjesc_b2c.app.appraiset.RequestAndResultCode;
import com.bjesc_b2c.app.appraiset.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

import static com.bjesc_b2c.app.appraiset.RequestAndResultCode.CHANGEENGAGEMENTDATEACTIVITY_TO_COUNTRYVARIOUSCITYACTIVITY_REQUEST;

/**
 * Created by Jason Chen on 2017/2/23.
 * 最后转入地
 */

public class ChangEengagementDateActivity extends BaseActivity {
    @InjectView(R.id.tv_change_date)
    TextView changeDateTv;
    @InjectView(R.id.tv_evaluating_address)
    TextView evaluatingAddressTv;
    @InjectView(R.id.edit_detail_address)
    EditText detailAddressEdit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_change_eengagementdate);
        ButterKnife.inject(this);
    }

    @OnClick({R.id.iv_return, R.id.rlty_change_date, R.id.rlty_evaluating_address})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_return:        //返回
                finish();
                break;
            case R.id.rlty_change_date: //改变时间

                break;
            case R.id.rlty_evaluating_address:  //评估地区
                Intent addressIntent = new Intent(ChangEengagementDateActivity.this, CountryVariousCityActivity.class);
                addressIntent.putExtra("cityType",1);
                startIntent(addressIntent, CHANGEENGAGEMENTDATEACTIVITY_TO_COUNTRYVARIOUSCITYACTIVITY_REQUEST);
                break;
        }
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if(requestCode== RequestAndResultCode.CHANGEENGAGEMENTDATEACTIVITY_TO_COUNTRYVARIOUSCITYACTIVITY_REQUEST){
            if(resultCode == RequestAndResultCode.COUNTRYVARIOUSCITYACTIVITY_BACK_CHANGEENGAGEMENTDATEACTIVITY_RESULT){

            }
        }
    }
}
